package com.yn.common.request.sc;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 转运服务文章管理表
 * 文章管理 Request
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "ArticleManageRequest对象", description = "转运服务栏目管理表")
public class ArticleManageRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "栏目ID")
    private Long id;

    @ApiModelProperty(value = "栏目类型(字典)", required = true)
    @NotBlank(message = "请填写栏目类型")
    @Length(max = 30, message = "栏目类型最多30个字符")
    private String titleType;

    @ApiModelProperty(value = "栏目名称", required = true)
    @NotBlank(message = "请填写栏目名称")
    @Length(max = 100, message = "栏目名称最多100个字符")
    private String titleName;

    @ApiModelProperty(value = "栏目简介", required = true)
    @NotBlank(message = "请填写栏目简介")
    @Length(max = 300, message = "栏目简介最多300个字符")
    private String titleIntro;
}
